<?php
if(!defined('ADMINPX') || !defined('ADMIN')) {
	exit('Access Denied');
}
$act=$_GET['act'];
if($act=='ok'){
   if(!$_POST[adminpost]){
	   echo"提交出错<br/>";
   }else{
	   Bingz_config('user_config_reg',$_POST['user_config_reg'],'post');
	   Bingz_config('user_config_reg_name',$_POST['user_config_reg_name'],'post');
	   Bingz_config('user_config_reg_money',$_POST['user_config_reg_money'],'post');
	   Bingz_config('user_config_reg_jifen',$_POST['user_config_reg_jifen'],'post');
	   Bingz_config('user_config_reg_yeobi',$_POST['user_config_reg_yeobi'],'post');
	   Bingz_config('user_config_reg_xinxi',$_POST['user_config_reg_xinxi'],'post');

	   Bingz_config('user_config_reg_sms_phone',$_POST['user_config_reg_sms_phone'],'post');
	   Bingz_config('user_config_reg_sms_zlm',$_POST['user_config_reg_sms_zlm'],'post');
	   Bingz_config('user_config_reg_sms_pass',$_POST['user_config_reg_sms_pass'],'post');


	   Bingz_config('user_config_reg_sjrz',$_POST['user_config_reg_sjrz'],'post');
	   Bingz_config('user_config_reg_sjrz_yzm',$_POST['user_config_reg_sjrz_yzm'],'post');

	   Bingz_config('user_config_reg_tglx',$_POST['user_config_reg_tglx'],'post');
	   Bingz_config('user_config_reg_tgjl',$_POST['user_config_reg_tgjl'],'post');
	   Bingz_config('user_config_reg_tgcs',$_POST['user_config_reg_tgcs'],'post');

	   Bingz_config('user_config_jifen_sz',$_POST['user_config_jifen_sz'],'post');
	   Bingz_config('user_config_jifen_bla',$_POST['user_config_jifen_bla'],'post');
	   Bingz_config('user_config_jifen_blb',$_POST['user_config_jifen_blb'],'post');
	   
	   Bingz_config('user_config_money_sz',$_POST['user_config_money_sz'],'post');
	   Bingz_config('user_config_money_bla',$_POST['user_config_money_bla'],'post');
	   Bingz_config('user_config_money_blb',$_POST['user_config_money_blb'],'post');
	   
	   Bingz_config('user_config_yeobi_sz',$_POST['user_config_yeobi_sz'],'post');
	   Bingz_config('user_config_yeobi_bla',$_POST['user_config_yeobi_bla'],'post');
	   Bingz_config('user_config_yeobi_blb',$_POST['user_config_yeobi_blb'],'post');
	   Bingz_config('user_config_tixisz',$_POST['user_config_tixisz'],'post');

	   Bingz_config('user_config_qqlogin_sz',$_POST['user_config_qqlogin_sz'],'post');
	   Bingz_config('user_config_qqlogin_appid',$_POST['user_config_qqlogin_appid'],'post');
	   Bingz_config('user_config_qqlogin_appkey',$_POST['user_config_qqlogin_appkey'],'post');
	   Bingz_config('user_config_qqlogin_url',$_POST['user_config_qqlogin_url'],'post');
	   Bingz_config('user_config_qqlogin_api',$_POST['user_config_qqlogin_api'],'post');

	   Bingz_config('user_config_dnusz',$_POST['user_config_dnusz'],'post');
	   Bingz_config('user_config_dnuse',$_POST['user_config_dnuse'],'post');
	   Bingz_config('user_config_dnulx',$_POST['user_config_dnulx'],'post');
     echo"提交成功<br/>";
	 }
   echo "正在自动返回.......<br/><a href=\"admin.php?action=user_config\">请手动返回</a><br/><meta http-equiv=refresh content='3;url=admin.php?action=user_config'>";
}else{
if(Bingz_config('user_config_reg') == '0'){$user_config_reg='CHECKED';}elseif(Bingz_config('user_config_reg') == '1'){$user_config_rega='CHECKED';}elseif(Bingz_config('user_config_reg') == '2'){$user_config_regb='CHECKED';}
$user_config_reg_name=Bingz_config('user_config_reg_name');
$user_config_reg_money=Bingz_config('user_config_reg_money');
$user_config_reg_jifen=Bingz_config('user_config_reg_jifen');
$user_config_reg_yeobi=Bingz_config('user_config_reg_yeobi');
$user_config_reg_xinxi=Bingz_config('user_config_reg_xinxi');

$user_config_reg_sms_phone=Bingz_config('user_config_reg_sms_phone');
$user_config_reg_sms_zlm=Bingz_config('user_config_reg_sms_zlm');
$user_config_reg_sms_pass=Bingz_config('user_config_reg_sms_pass');

if(Bingz_config('user_config_reg_sjrz') == '1'){$user_config_reg_sjrz='CHECKED';}else{$user_config_reg_sjrza='CHECKED';}
$user_config_reg_sjrz_yzm=Bingz_config('user_config_reg_sjrz_yzm');

if(Bingz_config('user_config_reg_tglx') == 'money'){$user_config_reg_tglx='CHECKED';}elseif(Bingz_config('user_config_reg_tglx') == 'yeobi'){$user_config_reg_tglxa='CHECKED';}elseif(Bingz_config('user_config_reg_tglx') == 'renminbi'){$user_config_reg_tglxb='CHECKED';}
$user_config_reg_tgjl=Bingz_config('user_config_reg_tgjl');
$user_config_reg_tgcs=Bingz_config('user_config_reg_tgcs');


if(Bingz_config('user_config_jifen_sz') == '1'){$user_config_jifen_sz='CHECKED';}else{$user_config_jifen_sza='CHECKED';}
$user_config_jifen_bla=Bingz_config('user_config_jifen_bla');
$user_config_jifen_blb=Bingz_config('user_config_jifen_blb');
if(Bingz_config('user_config_money_sz') == '1'){$user_config_money_sz='CHECKED';}else{$user_config_money_sza='CHECKED';}
$user_config_money_bla=Bingz_config('user_config_money_bla');
$user_config_money_blb=Bingz_config('user_config_money_blb');
if(Bingz_config('user_config_yeobi_sz') == '1'){$user_config_yeobi_sz='CHECKED';}else{$user_config_yeobi_sza='CHECKED';}
$user_config_yeobi_bla=Bingz_config('user_config_yeobi_bla');
$user_config_yeobi_blb=Bingz_config('user_config_yeobi_blb');
if(Bingz_config('user_config_tixisz') == '1'){$user_config_tixisz='CHECKED';}else{$user_config_tixisza='CHECKED';}
if(Bingz_config('user_config_qqlogin_sz') == '1'){$user_config_qqlogin_sz='CHECKED';}else{$user_config_qqlogin_sza='CHECKED';}
$user_config_qqlogin_appid=Bingz_config('user_config_qqlogin_appid');
$user_config_qqlogin_appkey=Bingz_config('user_config_qqlogin_appkey');
$user_config_qqlogin_url=Bingz_config('user_config_qqlogin_url');
$user_config_qqlogin_api=Bingz_config('user_config_qqlogin_api');
$user_config_dnuse=Bingz_config('user_config_dnuse');
if(Bingz_config('user_config_dnusz') == '1'){$user_config_dnusza='CHECKED';}else{$user_config_dnusz='CHECKED';}
if(Bingz_config('user_config_dnulx') == 'jifen'){$user_config_dnulx='CHECKED';}elseif(Bingz_config('user_config_dnulx') == 'money'){$user_config_dnulxa='CHECKED';}elseif(Bingz_config('user_config_dnulx') == 'yeobi'){$user_config_dnulxb='CHECKED';}
$jbmc=Bingz_management_name('jifen');
$jbmca=Bingz_management_name('money');
$jbmcb=Bingz_management_name('yeobi');
echo <<<end
<div class="admin">==会员配置==<br/></div>
	<form  method="post" action="admin.php?action=user_config&act=ok">
注册方式设置:
<input type="radio" $user_config_reg name="user_config_reg" value="0" />手动注册
<input type="radio" $user_config_rega name="user_config_reg" value="1" />短信注册
<input type="radio" $user_config_regb name="user_config_reg" value="2" />关闭注册 <br/>
关闭注册提示:<br/>
<input  class="text" type="text" name="user_config_reg_name" value="$user_config_reg_name"/><br/>
注册奖励经验:<br/>
<input  class="text" type="text" name="user_config_reg_money" value="$user_config_reg_money"/><br/>
注册奖励金币:<br/>
<input  class="text" type="text" name="user_config_reg_jifen" value="$user_config_reg_jifen"/><br/>
注册奖励游币:<br/>
<input  class="text" type="text" name="user_config_reg_yeobi" value="$user_config_reg_yeobi"/><br/>
注册方式站内信息:<br/>
<input  class="text" type="text" name="user_config_reg_xinxi" value="$user_config_reg_xinxi"/><br/>


短信注册手机:<br/>
<input  class="text" type="text" name="user_config_reg_sms_phone" value="$user_config_reg_sms_phone"/><br/>
短信注册指令:<br/>
<input  class="text" type="text" name="user_config_reg_sms_zlm" value="$user_config_reg_sms_zlm"/><br/>
短信通讯密令:<br/>
<input  class="text" type="password" name="user_config_reg_sms_pass" value="$user_config_reg_sms_pass"/><br/>


开启短信手机认证: 
<input type="radio" $user_config_reg_sjrz name="user_config_reg_sjrz" value="1" />开启
<input type="radio" $user_config_reg_sjrza name="user_config_reg_sjrz" value="0" />关闭<br/>
短信手机认证指令:<br/>
<input  class="text" type="text" name="user_config_reg_sjrz_yzm" value="$user_config_reg_sjrz_yzm"/><br/>


推广方式: 
<input type="radio" $user_config_reg_tglx name="user_config_reg_tglx" value="money" />金币
<input type="radio" $user_config_reg_tglxa name="user_config_reg_tglx" value="yeobi" />游币
<input type="radio" $user_config_reg_tglxb name="user_config_reg_tglx" value="renminbi" />人民币 <br/>
推广奖励:<br/>
<input  class="text" type="text" name="user_config_reg_tgjl" value="$user_config_reg_tgjl"/><br/>
每日推广:<br/>
<input  class="text" type="text" name="user_config_reg_tgcs" value="$user_config_reg_tgcs"/>次<br/>


<b>人民币对换经验</b>:
     <input type="radio" $user_config_jifen_sz name="user_config_jifen_sz" value="1" />开启
     <input type="radio" $user_config_jifen_sza name="user_config_jifen_sz" value="0" />关闭
<br/>
<b>人民币对换经验  1元 </b> ：
<input type="text" name="user_config_jifen_bla" value="$user_config_jifen_bla" size="3"/> =
<input type="text" name="user_config_jifen_blb" value="$user_config_jifen_blb" size="3"/> ：1元
<br/>
<b>人民币对换金币</b>:
     <input type="radio" $user_config_money_sz name="user_config_money_sz" value="1" />开启
     <input type="radio" $user_config_money_sza name="user_config_money_sz" value="0" />关闭
<br/>
<b>人民币对换金币  1元 </b>：
<input type="text" name="user_config_money_bla" value="$user_config_money_bla" size="3"/> =
<input type="text" name="user_config_money_blb" value="$user_config_money_blb" size="3"/> ：1元<br/>
<b>人民币对换游币</b>:
     <input type="radio" $user_config_yeobi_sz name="user_config_yeobi_sz" value="1" />开启
     <input type="radio" $user_config_yeobi_sza name="user_config_yeobi_sz" value="0" />关闭
<br/>
<b>人民币对换游币 1元 </b>：
<input type="text" name="user_config_yeobi_bla" value="$user_config_yeobi_bla" size="3"/> =
<input type="text" name="user_config_yeobi_blb" value="$user_config_yeobi_blb" size="3"/> ：1元<br/>
<b>人民币提现设置</b>:
     <input type="radio" $user_config_tixisz name="user_config_tixisz" value="1" />开启
     <input type="radio" $user_config_tixisza name="user_config_tixisz" value="0" />关闭
<br/>


<b>qq登陆</b>:
     <input type="radio" $user_config_qqlogin_sz name="user_config_qqlogin_sz" value="1" />开启
     <input type="radio" $user_config_qqlogin_sza name="user_config_qqlogin_sz" value="0" />关闭
<br/>
申请appid:<br/>
<input  class="text" type="text" name="user_config_qqlogin_appid" value="$user_config_qqlogin_appid"/><br/>
申请appkey:<br/>
<input  class="text" type="text" name="user_config_qqlogin_appkey" value="$user_config_qqlogin_appkey"/><br/>
申请网址:<br/>
<input  class="text" type="text" name="user_config_qqlogin_url" value="$user_config_qqlogin_url"/><br/>
api接口:<br/>
<input  class="text" type="text" name="user_config_qqlogin_api" value="$user_config_qqlogin_api"/><br/>


每天登陆奖励:
<input type="radio" $user_config_dnusz name="user_config_dnusz" value="0" />关闭
<input type="radio" $user_config_dnusza name="user_config_dnusz" value="1" />开启<br/>
登陆奖励类型:
<input type="radio" $user_config_dnulx name="user_config_dnulx" value="jifen" /> $jbmc
<input type="radio" $user_config_dnulxa name="user_config_dnulx" value="money" /> $jbmca
<input type="radio" $user_config_dnulxb name="user_config_dnulx" value="yeobi" /> $jbmcb<br/>
登陆奖励数额:<br/>
<input  class="text" type="text" name="user_config_dnuse" value="$user_config_dnuse"/><br/>



	<input class="submit" type="submit" name="adminpost" value="提交修改" />
	<br/>
end;
}
?>